<?php
namespace app\admin\validate;
use think\Validate;

class Module extends Validate
{
	//当前验证规则
	protected $rule = [
		'ctl'  =>'require|alpha',
		'act'  =>'require|alpha',
	];
	//验证提示信息
	protected $message = [
		'ctl'   =>[
			'require'=>'控制器名不能为空',
			'alpha' =>'控制器名必须为字母'
		],
		'act'=>[
			'require'=>'方法名不能为空',
			'alpha' =>'方法名必须为字母'
		],
	];
	//验证场景
	protected $scene = [
		'ctl' => ['ctl'],
		'act'=>['act']
	];
}